home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
0769B.ZIP
/
DBTPACK.DOC
< prev
next >
Wrap
Text File
|
1987-10-10
|
4KB
|
102 lines
d B T P A C K version 1.00 Vernon E. Davis
---------------------------------------------------------
dBASE is a registered trademark of Ashton-Tate.
This program is released to the public domain.
dBTPACK is a dBASE III utility program that packs ( removes permanently )
the unused information stored in a memo field.
The memo is a type of field that can be used to store text. This memo
information is stored in a separate file with the same filename as the
database file, but with a different extension ( .DBT ).
There are two problems that hinder the use of memo fields.
1. If editing an existing memo field and the new field is saved,
the entire contents are rewritten and appended to the end of
the file. The old contents remain in the file at its original
position, never to be used again. For example:
You have a .DBF file with one record. This record contains a
memo field that has 1000 bytes of information. If you edit
that memo and add another 1000 bytes of information, this
new information plus the old information is added to the
end of the .DBT file. YOU HAVE EFFECTIVELY TRIPLED THE SIZE
OF THE FILE !
2. When packing the file, using the dBASE keyword PACK, the .DBT
file is untouched, so that the memo file will become HUGE very
quickly !
That is what this program is for. It will get rid of old information
that does nothing but eat up disk space.
SPECIFICATIONS:
--------------
Required: IBM-PC,-XT,-AT or compatible with at least 256K RAM.
: PC-,MS-DOS version 2.0 or above.
: dBASE III, III PLUS or equivalent.
Notes : This program was written in C using Borland's Turbo C
: Compiler v1.0. Some of the screen handling routines
: that I have written rely on BIOS compatibility.
:
: The .DBF file and .DBT file are required to be in the
: same directory.
:
: IMPORTANT! This program works by making a temporary file
: containing the memo information. INSURE THAT THERE ENOUGH
: DISK SPACE TO CREATE THIS FILE! Since the program does not
: check for disk space, it will be up to YOU. A safe bet is
: that the disk free space is equal to or greater than the
: size of the .DBT file as it stands now.
:
: This program DOES NOT pack the .DBF file!
INSTRUCTIONS:
------------
There are two ways to execute dBTPACK:
1. At the DOS prompt, type dBTPACK. The command line help screen will
appear and you will be prompted for a database filename. NOTE that
the .DBF extension is assumed. Enter up to eight characters or
just press <CR> to abort the program. If the .DBF file is found
and the .DBT file is also there, you will be prompted:
Erase memos of deleted records ? Y/N
If you press the 'Y' key, any records in the .DBF file that are
marked for deletion will have their respective memo fields
permanently removed from the .DBT file.
If you press the 'N' key, the memo fields from deleted records
remain untouched.
2. At the DOS prompt, type dBTPACK filename <d>, where:
filename = the name of the dBASE database file. NOTE that the
.DBF extension is assumed.
d = <optional> erase memos of deleted records. If d is present,
any records marked for deletion will have their respective memo
fields deleted. If d is not present, the memo fields remain untouched.
Once the program is started by either method, a total number of records
and a record counter are displayed. The process continues until the
record counter is equal to the total number of records OR the Escape key
is pressed, which aborts the program. When the program is finished, you
will have a packed .DBT memo file.
----------------------------------------------------------------------
Any comments, suggestions or bug reportings are welcome. I can be
reached via:
CompuServe [71330,2705] or GEnie - MailBox VED